package cn.neusoft.feignClients;

import cn.neusoft.domain.Allocate;
import cn.neusoft.interceptor.FeignInterceptor;
import cn.neusoft.vo.ResultBean;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.List;

@FeignClient(value = "delivery-server", configuration = FeignInterceptor.class)
public interface DeliveryFeignClient {

    @PostMapping("/allocate/AddAnyway")
    ResultBean AddAllocate(@RequestBody Allocate allocate);

    @GetMapping("allocate/GetAllocateByDel_flag/{Del_flag}")
    List<Allocate> GetAllocateByDel_flag(@PathVariable("Del_flag") String Del_flag);
}
